package com.teamcenter.rac.massupdate.converters;

import org.eclipse.core.databinding.conversion.IConverter;

import com.teamcenter.rac.massupdate.ui.Messages;

public class Boolean2YNConverter
  implements IConverter
{
  public Object getFromType()
  {
    return Boolean.class;
  }
  
  public Object getToType()
  {
    return String.class;
  }
  
  public Object convert(Object paramObject)
  {
    if (((Boolean)paramObject).booleanValue()) {
      return Messages.Boolean2YNConverter_Yes;
    }
    return Messages.Boolean2YNConverter_No;
  }
}
